var user = require('./user');
var log = require('./log');
var stock = require('./stock');
var data = require('./data');
var test = require('./test');

var path = require('path');

module.exports = function (app) {
    app.get('/index', function (req, res) {
        // path.resolve
        console.log(__dirname);
        console.log(path.resolve(__dirname, '../public/html/index.html'));
        res.sendFile(path.resolve(__dirname, '../public/html/index.html'));
    });
    app.use('/user', user);
    app.use('/log', log);
    app.use('/stock', stock);
    app.use('/data', data);
    app.use('/test', test);
};